def counter():
    count1 = 0
    count2 = 1
    while True:
        temp = count1
        count1 = count2
        count2 = temp + count1
        yield temp


count = counter()
print(next(count))
print(next(count))
print(next(count))
print(next(count))
print(next(count))
print(next(count))
print(next(count))
print(next(count))